package com.niiwoo.civet.user.service.local;

import com.niiwoo.civet.user.dao.entity.MessageTemplate;
import com.niiwoo.civet.user.dao.mapper.MessageTemplateMapperExt;
import com.niiwoo.civet.user.enums.SMSTemplateKeyEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MessageTemplateService {

    @Autowired
    MessageTemplateMapperExt messageTemplateMapperExt;

    public MessageTemplate getByKey(SMSTemplateKeyEnum key) {
        return messageTemplateMapperExt.selectByTemplateKey(key.getKey());
    }

}
